function wget(line)
  print("wget:")
  print(line)
  local secondfile = io.popen(line)
  if nil == secondfile then
    print("open file for wget fail")
    return nil
  end

  print("\n====== wget result:")
  local content = secondfile:read("*a")
  print(content)

  secondfile:close()
  return content
end

return wget
